package com.atguigu.gulimall.search.vo;

import lombok.Data;

import java.util.List;

/**
 * 封装页面所有可能传递过来的查询条件
 */
@Data
public class SearchParam {
    // 全文匹配关键字
    private String keyword;
    // 3级分类ID
    private Long catalog3Id;
    /**
     * 排序条件
     * sort=saleCount_asc/desc
     * sort=skuPrice_asc/desc
     * sort=hotScore_asc/desc
     */
    private String sort;

    /**
     * 好多过滤条件
     * hasStock 是否有货  hasStock=0 1
     * skuPrice 价格区间  skuPrice=1_500 _500 500_
     * brandId  品牌ID   brandId=1  brandId=1&brandId=2
     * attrs    按照属性筛选  attrs=1_其他:安卓&attrs=2_屏幕尺寸:5寸:6寸
     * pageNum  页码  pageNum=1
     */
    private Integer hasStock;
    private String skuPrice;
    private List<Long> brandId;
    private List<String> attrs;
    private Integer pageNum = 1;


}
